	<fieldset>
		<legend><?php echo $contribution_title; ?></legend>
		
		<fieldset>
			<legend>Information</legend>
			
			<p>
				<strong>Contribution title:</strong> <?php echo $contribution_title; ?><br />
				<strong>Contribution description:</strong> <?php echo $contribution_description; ?><br />
			</p>
		</fieldset>
		
		
		<fieldset>
			<legend>Attributes</legend>
			
			<form enctype="multipart/form-data" method="POST">
			<ul>
			
<?php if (count($attributes != 0)) : foreach ($attributes as $attribute) : ?>

				<li><p>
					<label for="att[<?php echo $attribute['attribute_id']; ?>]" title="<?php echo $attribute['attribute_description']; ?>"><?php echo $attribute['attribute_name']; ?>: <?php if ($attribute['optional'] == '1') : ?>(Optional)<?php endif; ?></label><br />

<?php if ($attribute['attribute_type'] == 'TEXT') : ?>

					<input type="text" name="att[<?php echo $attribute['attribute_id']; ?>]" id="att[<?php echo $attribute['attribute_id']; ?>]" />

<?php elseif ($attribute['attribute_type'] == 'PASSWORD') : ?>

					<input type="password" name="att[<?php echo $attribute['attribute_id']; ?>]" id="att[<?php echo $attribute['attribute_id']; ?>]" />

<?php elseif ($attribute['attribute_type'] == 'TEXTAREA') : ?>

					<textarea name="att[<?php echo $attribute['attribute_id']; ?>]" id="att[<?php echo $attribute['attribute_id']; ?>]" rows="8" cols="50"></textarea>

<?php elseif ($attribute['attribute_type'] == 'FILE') : ?>

					<input type="file" name="att[<?php echo $attribute['attribute_id']; ?>]" id="att[<?php echo $attribute['attribute_id']; ?>]" />

<?php elseif ($attribute['attribute_type'] == 'CHECKBOX') : ?>

					<input type="checkbox" name="att[<?php echo $attribute['attribute_id']; ?>]" id="att[<?php echo $attribute['attribute_id']; ?>]" />

<?php endif; ?>

				</p></li>

<?php endforeach; endif; ?>
				
				<li><p>
					<input type="submit" value="Save" />
					<input type="button" value="Cancel" onclick="javascript:document.location = '<?php echo site_url('home/participate/' . $stage_instance_id); ?>'" />
				</p></li>
			</ul>
			</form>
		</fieldset>
	</fieldset>